import Vue from 'vue'
import App from './App'
import store from './store/index'
import tim from './utils/commen/tim.js'
import commen from './utils/commen/commen.js'
import TIM from '@/utils/tim/tim-js-sdk'

// main.js

// 引入uView组件库
import uView from 'uview-ui'
Vue.use(uView)

//引入svg组件
import IIcon from './components/IIcon.vue'
Vue.component('i-icon', IIcon)  //全局注册 i-icon

//引入分享
import share from './components/i-share-popup.vue'
Vue.component('share',share)

//引入加载组件
import pageLoading from './components/pageLoading.vue'
Vue.component('page-loading',pageLoading)

// 引入api接口
import api from '@/api'
Vue.prototype.$api = api

// 引入全局配置
import config from '@/utils/config.js'
Vue.prototype.$config = config

//引入vuex
Vue.prototype.$store = store

//引入tim
Vue.prototype.tim = tim.tim //tim sdk 引入后生成的tim服务
Vue.prototype.$TIM = TIM //tim 的状态/事件 常量
Vue.prototype.$commen = commen

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
  store,
  ...App
})
app.$mount()
